<!doctype html>
<html >
<head>
<include file="Public:headinc" />
<include file="Public:pagestyle" />
</head>
<body>
	<div class="y-container">
		<div class="y-pagetitle">
			列表
		</div>
		<div class="y-toolbar">
			<a href="javascript:;" class="y-btn"><span>添加</span></a>
		</div>
		<div class="y-list">
			<table width="100%" border="0" cellspacing="0" cellpadding="0">
				<tr>
					<th >编号</th>
					<th >所属文章</th>
					<th >昵称</th>
					<th >Email</th>
					<th >网址</th>
					<th >内容</th>
					<th >是否通过</th>
					<th >时间</th>
					<th >回复数</th>
					<th >操作</th>
				</tr>
<?php for($i=0,$c=count($data); $i<$c; $i++) { ?>
<tr >
	<td>{$data[$i]['id']}</td>
	<td>{$data[$i]['title']}</td>
	<td>{$data[$i]['nickname']}</td>
	<td>{$data[$i]['email']}</td>
	<td>{$data[$i]['website']}</td>
	<td>{:y_processFace($data[$i]['content'])}</td>
	<td><?php echo $data[$i]['tongguo'] == '1' ? '通过' : '未通过'; ?></td>
	<td>{:date('Y-m-d H:i', $data[$i]['posttime'])}</td>
	<td>{$data[$i]['c']}</td>
	<td>
		<a href="javascript:;" onclick="viewReply({$data[$i]['id']})">查看回复</a>&nbsp;&nbsp;
		<a href="{:U('Comment/delComment', 'id='.$data[$i]['id'])}" onclick="return confirm('确实要删除吗')">删除</a>
	</td>
</tr>
<?php } ?>			
			</table>
<div class="page">
{$pageString}
</div>
		</div>
		<div class="y-toolbar">
			<a href="javascript:;" class="y-btn"><span>添加</span></a>
		</div>
	</div>
</body>
<script type="text/javascript" src="<?php echo MY_CDN; ?>/admin/js/comment.js"></script>
</html>
